<template>
<RouterView></RouterView>
<!-- <div>
    <input type="text" placeholder="请输入id进行跳转" v-model="res">
</div>  
<button @click="btn">跳转到child1</button>
<button @click="btn1">跳转到child2</button> -->

</template>
<!-- <script setup>
import {ref} from "vue"
import {useRouter}  from "vue-router"
let res=ref("")
let router=new useRouter()
let btn=function () {
    router.push(`/parent/${res}/child1`)
}
let btn1=function () {
    router.push(`/parent/${res}/child1`)
}
</script> -->